package com.xiao.mall.message.service.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xiao.mall.message.domain.NotificationMessage;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
public class TpnsRequestBody implements Serializable {

    private static final long serialVersionUID = -2302699919114247714L;

    private String audience_type;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<String> token_list;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<String> account_list;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer account_type;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer account_push_type;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String plan_id; //推送计划

    private NotificationMessage message;

    @Builder.Default
    private String message_type = "notify";

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String environment;
}
